package com.huawei.crm.domain;

import lombok.*;

import java.util.List;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Employee {
    private Long id;

    private String name;

    private String password;

    private String email;

    private Integer age;

    private boolean admin = false;

    //多对一的关系
    private Department dept;

    //多对多的关系
    private List<Role> roles;

}